const fs = require("fs");
const path = require("path");
var filePath = path.join(__dirname,"/1.txt");

//同步方法
var fileContent = fs.readFileSync(filePath);

console.log(fileContent.toString());
console.log("同步代码执行");